package org.qee.mq.custom;

import java.io.IOException;

/**
 * @ProjectName: learning
 * @Package: org.qee.mq.custom
 * @ClassName: ValueSerialization
 * @Description:
 * @Date: 2021/12/20 10:34 上午
 * @Version: 1.0
 */
public interface ValueSerialization {

    byte[] serialize(Object value) throws IOException;

    <T> T deserialize(byte[] bytes, Class<T> clzz) throws IOException;
}
